package com.aya.ite.component;

import java.util.Iterator;
import java.util.Stack;

public class Dessert extends AbstractMenu implements MenuComponent {
    @Override
    public String getName() {
        return "甜品店";
    }

    private Stack<Menu> menuItems = new Stack<>();

    public boolean addMenu(Menu menuItem) {
        return menuItems.add(menuItem);
    }


    public Iterator<Menu> createIterator() {
        return menuItems.iterator();
    }
}
